/*   This file is prepared for Doxygen automatic documentation generation     */
/*! \file **********************************************************************
 *
 * \brief
 *      Core51 functions definitions
 * 
 * \author
 *      Américo Dias <americo.dias@fe.up.pt>
 *
 * $Revision: 11 $
 * $HeadURL: http://rmws.googlecode.com/svn/trunk/src/core51.h $
 * $Date: 2010-04-24 17:16:16 +0000 (Sat, 24 Apr 2010) $
 * $Author: americo.dias $
 * $Id: core51.h 11 2010-04-24 17:16:16Z americo.dias $
 *
 ******************************************************************************/
#ifndef __CORE51_H
#define __CORE41_H

int core51_init(unsigned long int baudrate);
int core51_destroy();
int core51_sendhex(char *filename);
int core51_run(void);
int core51_abort(void);
int srkey(unsigned char state, unsigned char ch);
int srreset(unsigned char state);
int srint(unsigned char state);

int uart_read();
char *get_uart_buffer();

#endif
